<template>
  <div class="bigbox">
    <div class="xiaobox">
       <el-input
    placeholder="请输入内容"
    prefix-icon="el-icon-search"
    clearable
    v-model="search">
  </el-input>
   <el-button type="primary" @click="searchfun">搜索</el-button>
    </div>
    <div>
  <el-button type="primary" @click="clickHander">添加</el-button>
    <el-button type="danger" @click="batchDelete">批量删除</el-button>
    </div>
<!--     
    <div class="block">
      <el-date-picker
        v-model="value1"
        type="daterange"
        range-separator="至"
        start-placeholder="开始日期"
        end-placeholder="结束日期"
      >
      </el-date-picker>
    </div> -->
  </div>
</template>

<script>
import eventBus from '../../../utils/busEvent'
export default {
  data() {
    return {
      radio: 4,
      search:''
    };
  },
  methods: {
    searchfun() {
      this.$emit('parentseachfun',this.search)
    },
    batchDelete() {
      eventBus.$emit('batchtranfer')
    },
    clickHander() {
      this.$emit('openDialog')
    }
    
  }


  
}
</script>

<style scoped lang="less">
.bigbox{
  height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  .xiaobox{
    display: flex;
  }

  // margin-top: 10px;
 
  
}

</style>